'''
Created on 31-01-2012

@author: Kamil
'''
from math import e
from random import random as rd

class dupa():
    def poisson(self,lamb):
        L = e ** (-lamb)
        k = 0
        p = 1
        while True:
            k += 1
            p *= rd()
            if p < L:
                break
        return k - 1
print "dupa"
a=0
dupa = dupa()
while a<20:
    a=a+1
    print dupa.poisson(10)